using Microsoft.AspNetCore.Mvc;

namespace HystrixDemo.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class WeatherForecastController : ControllerBase
    {
        private static readonly string[] Summaries = new[]
        {
        "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
    };

        private readonly ILogger<WeatherForecastController> _logger;
        private readonly ICustomService _customService;

        public WeatherForecastController(ILogger<WeatherForecastController> logger, ICustomService customService)
        {
            _logger = logger;
            _customService = customService;
        }




        [HttpGet(nameof(HystrTest))]
        public IActionResult HystrTest()
        {
            _customService.Call();

            return Content("OK");
        }
    }
}